package com.wilmer.video.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;

/**
 * 视频对象 bank_video
 * 
 * @author qgf
 * @date 2024-04-01
 */
public class Video extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 视频ID */
    private Long id;

    /** 分类（0查询征信 2失信记录） */
    @Excel(name = "分类", readConverterExp = "0=查询征信,2=失信记录")
    private String classify;

    /** 封面图 */
    @Excel(name = "封面图")
    private String image;

    /** 视频地址 */
    @Excel(name = "视频地址")
    private String url;

    /** 付费类型（1免费 2付费） */
    @Excel(name = "付费类型", readConverterExp = "1=免费,2=付费")
    private String type;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 视频名称 */
    @Excel(name = "视频名称")
    private String name;

    /** 视频价格 */
    @Excel(name = "视频价格")
    private BigDecimal price;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassify(String classify) 
    {
        this.classify = classify;
    }

    public String getClassify()
    {
        return classify;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public String setUrl(String url)
    {
        this.url = url;
        return url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classify", getClassify())
            .append("image", getImage())
            .append("url", getUrl())
            .append("type", getType())
            .append("status", getStatus())
            .append("name", getName())
            .append("price", getPrice())
            .append("sort", getSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
